package com.yanfan.ccapicode.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yanfan.ccapicode.dao.base.iservice.IBaseRepository;
import com.yanfan.ccapicode.dao.entity.ActionMappingDO;
import com.yanfan.ccapicode.enums.ThirdPartyCloudEnum;
import com.yanfan.ccapicode.web.bean.query.ProductTypeQuery;

import java.util.List;

/**
 * :)
 *
 */
public interface ActionMappingRepository extends IBaseRepository<ActionMappingDO> {

    List<ActionMappingDO> selectByProductIds(List<String> productIds, String cloud);

    List<ActionMappingDO> selectByProductId(String productId, String cloud);

    Page<ActionMappingDO> selectPageOrder(ProductTypeQuery query);

    int deleteByProductId(String productId, ThirdPartyCloudEnum cloud);

    void updateNull(List<String> productIds);

    /**
     * 查询操作技能映射
     *
     * @param id 操作技能映射主键
     * @return 操作技能映射
     */
    public ActionMappingDO selectCcapiActionMappingById(Long id);

    /**
     * 查询操作技能映射列表
     *
     * @param ccapiActionMapping 操作技能映射
     * @return 操作技能映射集合
     */
    public List<ActionMappingDO> selectCcapiActionMappingList(ActionMappingDO ccapiActionMapping);
}
